import React from 'react';
import { Route } from 'react-router-dom';

import ErrorBoundaryRoutes from 'app/shared/error/error-boundary-routes';

import ProjectType from './project-type';
import ProjectTypeDetail from './project-type-detail';
import ProjectTypeUpdate from './project-type-update';
import ProjectTypeDeleteDialog from './project-type-delete-dialog';

const ProjectTypeRoutes = () => (
  <ErrorBoundaryRoutes>
    <Route index element={<ProjectType />} />
    <Route path="new" element={<ProjectTypeUpdate />} />
    <Route path=":id">
      <Route index element={<ProjectTypeDetail />} />
      <Route path="edit" element={<ProjectTypeUpdate />} />
      <Route path="delete" element={<ProjectTypeDeleteDialog />} />
    </Route>
  </ErrorBoundaryRoutes>
);

export default ProjectTypeRoutes;
